package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.able.SgsReqAble;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 登录请求
 * @author zhongzhongyong
 * @version Id: SgsLoginRequest.java, v 0.1 2018/4/5 10:08 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsLoginRequest extends SgsBaseRequest implements SgsReqAble{

    /**
     * loginId 登录号
     */
    @Length(max = 32)
    @NotBlank(message = "登录号不能为空")
    private String loginId;

    /**
     * loginDevice 登录设备
     */
    @Length(max = 32)
    private String loginDevice;

    /**
     * loginShop 登录门店
     */
    @Length(max = 32)
    private String loginShop;

    /**
     * loginMerchantNo 登录商户
     */
    @Length(max = 32)
    private String loginMerchant;

    /**
     * 临时登录凭证
     */
    @NotBlank
    private String tempCode;


}
